package com.lovo.model;

import com.lovo.util.Column;
import com.lovo.util.Id;
import com.lovo.util.Table;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Description:
 * 用户DO
 * @author LiuChengQi
 * @date Created on 2020/11/14
 */
@Data
@NoArgsConstructor//创建无参构造方法
@Table("user_1114")
public class UserDO implements Serializable {
    @Id
    @Column("u_id")
    private Long id;
    @Column("u_loginName")
    private String userName;
    @Column("u_pwd")
    private String password;

    public UserDO(String userName, String password) {
        this.userName= userName;
        this.password = password;
    }
}
